<?php
/**
 * User: LongDH
 * Date: 5/25/11
 * Time: 10:58 AM
 */
?>

<div class="wv-coupon-metabox">

    <h4><?php _e('Enter your Coupon information here', 'wv') ?></h4>
	
	<p>
        <label for="wv-desc"><?php _e('Description', 'wv') ?></label>
		<label id="wv-desc-promt" class="hide-if-no-js prompt-text" style="visibility: hidden" for="wv-desc"><?php _e('Save $30 for single domain license') ?></label>
        <input type="text" id="wv-desc" name="content" value="<?php echo $post->post_content ?>"/>
    </p>

    <p>
        <label for="wv-enddate"><?php _e('Expiry Date', 'wv') ?></label>
		<label id="wv-enddate-promt" class="hide-if-no-js prompt-text" style="visibility: hidden" for="wv-enddate"><?php _e('01/01/2010') ?></label>
        <input type="text" id = "wv-enddate" class="datepicker" name="_wv_coupon[enddate]" value="<?php if (!empty($meta['enddate'])) echo $meta['enddate']; ?>"/>
    </p>

    <p>
        <label for="wv-couponcode"><?php _e('Coupon Code', 'wv') ?></label>
		<label id="wv-couponcode-promt" class="hide-if-no-js prompt-text" style="visibility: hidden" for="wv-couponcode"><?php _e('DOLLAR30') ?></label>
        <input type="text" id="wv-couponcode" name="_wv_coupon[couponcode]"
               value="<?php if (!empty($meta['couponcode'])) echo $meta['couponcode']; ?>"/>
    </p>

    <p>
        <label for="wv-saved"><?php _e('Saved', 'wv') ?></label>
		<label id="wv-saved-promt" class="hide-if-no-js prompt-text" style="visibility: hidden" for="wv-saved"><?php _e('$30 or 30%') ?></label>
        <input type="text" id = "wv-saved" name="_wv_coupon[saved]" value="<?php if (!empty($meta['saved'])) echo $meta['saved']; ?>"/>
    </p>

    <p>
        <label for="wv-couponurl"><?php _e('Link URL', 'wv') ?></label>
		<label id="wv-couponurl-promt" class="hide-if-no-js prompt-text" style="visibility: hidden" for="wv-couponurl"><?php _e('http://www.google.com') ?></label>
        <input type="text" id = "wv-couponurl" name="_wv_coupon[couponurl]" value="<?php if (!empty($meta['couponurl'])) echo $meta['couponurl']; ?>"/>
    </p>

	<p>
		<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
		<?php submit_button( __( 'Save' ), 'primary', 'publish', false, array( 'tabindex' => '5', 'accesskey' => 'p' ) );?>
	</p>
	
</div>